'use strict';

/**
 * Route configuration for the RDash module.
 */
angular.module('RDash').config(['app', '$stateProvider', '$urlRouterProvider',
    function (app, $stateProvider, $urlRouterProvider) {
        console.log('route-config');

        // For unmatched routes
        $urlRouterProvider.otherwise('/');

        // Application routes
        $stateProvider
            .state('index', {
                url: '/',
                templateUrl: 'templates/dashboard.html'
            })
            .state('tables', {
                url: '/tables',
                templateUrl: 'templates/tables.html'
            })
            .state('members', {
                url: '/members',
                templateUrl: 'templates/members.html'
            })
            .state('auth', {
                url: '/auth',
                templateUrl: 'templates/auth.html'
            })
            .state('include', {
                url: '/include',
                templateUrl: 'templates/include.html'
            });
    }]);